package br.jonasLab.financistoweb.view.managed;

import java.io.BufferedReader;
import java.io.FileReader;
import java.math.BigDecimal;
import java.math.RoundingMode;

public class Teste {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*
		String nomeArquivo = "files/20130924_183454_350";
		try {
			BufferedReader in = new BufferedReader(new FileReader(nomeArquivo));
			String str;
			while (in.ready()) {
				str = new String(in.readLine().getBytes(), "UTF-8");
				System.out.println(str);
				
			}
			in.close();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		*/
		double numero =12.7807;
		double resultado = new BigDecimal(numero).setScale(2,RoundingMode.HALF_EVEN).doubleValue();
		System.out.println(resultado);
	}

}
